package org.bonorsoft.modules.wechat.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;
/**
 * 呼应 请求 照片处理
 */
public interface EchoPhotoMapper {
    @Insert("insert into hy_photo(qqid, photo_path) values (#{qqid}, #{photo})")
    int addPhoto(String qqid, String photo);

    @Select("select photo_path from hy_photo where qqid = #{qqid}")
    List<String> getPhoto(String qqid);

    @Delete("delete from hy_photo where qqid = #{qqid}")
    void deletePhoto(String qqid);
}
